import MainPage from '@/pages/index';
import { createBrowserRouter } from 'react-router-dom';
import ErrorPage from '@/errorPage';
import { LoaderFn } from '@/pages/index';
const router = createBrowserRouter([
  {
    path: '/',
    element: <MainPage />,
    errorElement: <ErrorPage />,
    loader: LoaderFn,
  },
]);

export default router;
